//
//  Tags.m
//  SmallEasyLife
//
//  Created by imac on 11/2/15.
//  Copyright © 2015 GXK. All rights reserved.
//

#import "Tags.h"

@implementation Tags
+ (instancetype)tagsWithDictionary: (NSDictionary *) dictionary{
    return [[self alloc]initWithDictionary:dictionary];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
    self.identifier = value;
}else
    NSLog(@"Tage UndefinedKey -> %@ , value -> %@",key,value);
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"ev_count:%@\nidentifier:%@\nimg:%@ \nname:%@\n",self.ev_count,self.identifier,self.img,self.name];
}
@end
